package com.ztesoft.web.common.customdb.dao;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.ztesoft.web.common.customdb.dao.mapper.IDmTaskStageDefineCustomMapper;
import com.ztesoft.web.taskgenerator.db.po.DmTaskStageDefinePO;

@Repository("TaskStageDefineCustomDao")
public class DmTaskStageDefineCustomDao extends SqlSessionDaoSupport {

    @Resource(name = "majorSqlSessionTemplate")
    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        super.setSqlSessionTemplate(sqlSessionTemplate);
    }

    public IDmTaskStageDefineCustomMapper getMapper() {
    	return getSqlSession().getMapper(IDmTaskStageDefineCustomMapper.class);
    }

    public DmTaskStageDefinePO selectTaskStage(Integer operType, Integer stage, Integer priority) {
        return getMapper().selectTaskStage(operType, stage, priority);
    }
}
